import axios from 'axios'

const API = axios.create({
    baseURL: 'https://free.gpt.ge/v1', //请求后端数据的基本地址，自定义
    headers: {
      'Content-Type': 'application/json',
    }
  })
// 扩写
export const expand = (data) => {
    return API({
        method: 'post',
        url: '/chat/completions',
        headers: {
            'Accept': 'application/json',
            'Authorization': 'Bearer '+import.meta.env.VITE_APP_KEY
        },
        data: data
    })
}